/**
 * 
 */
package cn.com.callback

import java.util.Map;
import cn.com.elite.EliteBean;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import cn.com.elite.Util;
import cn.com.elite.PropertiesUtil;
/**
 * @author ThinkPad
 *
 */
public class SchedCustomerGroup implements CallBackInvoke{
	private static final Log log=LogFactory.getLog(SchedCustomerGroup.class);
	public void doCallBack(EliteBean eliteBean,String callBack,Map map,String body){
		PropertiesUtil properties = new PropertiesUtil();
		def crmurl = properties.readValue("crmip"); //获取CRM接口地址				
		def url=crmurl+"UpdateCustomerGroup"; //请求URL	
		def requestbody="{\"groupid\": \""+map.get("groupid")+"\",\"spconditions\": \""+Util.filterForObject(map.get("spconditions"))+"\",\"tablename\": \""+map.get("customergroup_tablename")+"\",\"selecttype\": "+map.get("selecttype")+"}";
		log.debug("请求报文："+requestbody);
		def charset = "utf-8";
		def timeout = 100000;
		def enableSSLflag = 0;
		def requestinfo = Util.doHttpPost(url,requestbody,charset,timeout,enableSSLflag);		
	}
}
